<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();//获得项目的根目录，上下文路径
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>系统登录 - 超市账单管理系统</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body class="login_bg">
	<section class="loginBox">
		<header class="loginHeader">
			<h1>超市账单管理系统</h1>
		</header>
		<section class="loginCont">
			<form class="loginForm" action="login.html">
				<div class="inputbox">
					<label for="user">用户名：</label>
					<input id="user" type="text" name="userName" placeholder="请输入用户名" required />
				</div>
				<div class="inputbox">
					<label for="mima">密码：</label>
					<input id="mima" type="password" name=userPassword placeholder="请输入密码" required />
				</div>
				<div class="subBtn">
					<input type="submit" value="登录" />
					<input type="reset" value="重置" />
				</div>
			</form>
			<c:if test="${ERROR!=null}">
				<span style="color:red">${ERROR}</span>
			</c:if>
			<c:remove var ="ERROR" scope="session"/>
		</section>
	</section>
</body>
</html>